package thinkinginjava.initialization;
//TIJ4 Chapter Initialization, Exercise 16, page 198
/* Create an array of String objects and assign a String to each element. Print
* the array by using an forloop.
*/
public class StringArrayEx16 {
 
	public static void main(String[] args) {
        String[] s={"one","two","three"};
//        for(String str  :  s){
//        	System.out.println(str+"");
//        }
        for(int i=0 ;i<s.length;i++){
        	System.out.println("s["+i+"]="+s[i]);
        }
	}

}
